package model;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
public class Teacher {

    private int id;
    private String name;
    @XmlAttribute
    private String code;

    public Teacher() {
    }

    public Teacher(int id, String name, String code) {

        this.id = id;
        this.name = name;
        this.code = code;
    }

    public int getId() {

        return this.id;
    }

    public String getName() {

        return this.name;
    }

    public String getCode() {

        return this.code;
    }
}
